package com;

public class SubStringTest {

    static public void main(String[] argv) {
        int length = 2;
        String value = "100";
        int realLength = value.length();

        int subindex = realLength - length >= 0 ? realLength - length : 0;
        value = value.substring(subindex);

        int a = 0;
        a = 0;
    }
}
